<template>
	<view class="content">
		<!-- <view class="box1">
			<view class="text1">
				你好
			</view>
			<view class="text2">
				欢迎使用阖医聚养小程序
			</view>
		</view> -->
		<!-- 		<view style="height: 258px;">
<u-swiper :list="bannerList" height="258" border-radius="0"  indicator indicatorMode="dot" indicatorInactiveColor="#8df" indicatorStyle="bottom: 30px;"></u-swiper>
		</view> -->
		<view class="switch-view">
			<view class="switch-btn" @click="switchStatus">
				<text>切换常规版</text>
				<image src="../../../static/icon/switch_arrow_icon.png" style="width:40rpx;height: 40rpx;"
					mode="aspectFit">
				</image>
			</view>
		</view>
		<view class="allimg"
			style="border-radius: 40rpx;font-family: Alibaba, Alibaba-PuHuiTi-M;font-weight: normal;position: relative; background: #F7F7F7;">
			<view class="onebox" @click="goRecord">
				<view class="margin-left-10">
					<image src="@/static/home/image1.png" mode=""></image>
				</view>
				<view style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
					<view><text>家庭病床</text></view>
					<view class="margin-top-16"><text style="font-size: 30rpx; color: #9fa0a0;">点击申请家庭病床</text></view>
				</view>
			</view>
			<view class="onebox" @click="goMb">
				<view class="margin-left-10">
					<image src="@/static/home/image7.png" mode=""></image>
				</view>
				<view style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
					<view><text>慢病管护</text></view>
					<view class="margin-top-16"><text style="font-size: 30rpx; color: #9fa0a0;">创面患者诊疗服务</text></view>
				</view>
			</view>
			<view class="onebox" @click="goYhsd">
				<view class="margin-left-10">
					<image src="@/static/home/image6.png" mode=""></image>
				</view>
				<view style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
					<view><text>护士上门</text></view>
					<view class="margin-top-16"><text style="font-size: 30rpx; color: #9fa0a0;">专业、专心、专注</text></view>
				</view>
			</view>
			<view class="onebox" @click="goJzfw">
				<view class="margin-left-10">
					<image src="@/static/home/image2.png" mode=""></image>
				</view>
				<view style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
					<view><text>护工上门</text></view>
					<view class="margin-top-16"><text style="font-size: 30rpx; color: #9fa0a0;">您的贴心家政服务</text></view>
				</view>
			</view>
			<view class="onebox" @click="goYyjg">
				<view class="margin-left-10">
					<image src="@/static/home/image4.png" mode=""></image>
				</view>
				<view style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
					<view><text>医养机构</text></view>
					<view class="margin-top-16"><text style="font-size: 30rpx; color: #9fa0a0;">选择专业医养机构</text></view>
				</view>
			</view>
			<view class="onebox" @click="goFZ">
				<view class="margin-left-10">
					<image src="@/static/home/image3.png" mode=""></image>
				</view>
				<view style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
					<view><text>辅具租赁</text></view>
					<view class="margin-top-16"><text style="font-size: 30rpx; color: #9fa0a0;">助老设备租赁专区</text></view>
				</view>
			</view>
			<view class="onebox" @click="goYYPZ">
				<view class="margin-left-10">
					<image src="@/static/home/image5.png" mode=""></image>
				</view>
				<view style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
					<view><text>医院陪诊</text></view>
					<view class="margin-top-16"><text style="font-size: 30rpx; color: #9fa0a0;">医院陪诊</text></view>
				</view>
			</view>
			<view class="onebox" @click="goMb">
				<view class="margin-left-10">
					<image src="@/static/home/image7.png" mode=""></image>
				</view>
				<view style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
					<view><text>康复</text></view>
					<view class="margin-top-16"><text style="font-size: 30rpx; color: #9fa0a0;">康复</text></view>
				</view>
			</view>
			<!-- <view class="onebox" @click="goJzfw">
				<view class="margin-left-10">
					<image src="@/static/home/image2.png" mode=""></image>
				</view>
				<view style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
					<view><text>家政服务</text></view>
					<view class="margin-top-16"><text style="font-size: 30rpx; color: #9fa0a0;">您的贴心家政服务</text></view>
				</view>
			</view> -->

			<!-- <view class="onebox" @click="goZcfw">
				<view class="margin-left-10">
					<image src="@/static/home/image5.png" mode=""></image>
				</view>
				<view style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
					<view><text>助餐服务</text></view>
					<view class="margin-top-16"><text style="font-size: 30rpx; color: #9fa0a0;">老人专属助餐服务</text></view>
				</view>
			</view>
			<view class="onebox" @click="goYyjg">
				<view class="margin-left-10">
					<image src="@/static/home/image4.png" mode=""></image>
				</view>
				<view style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
					<view><text>医养机构</text></view>
					<view class="margin-top-16"><text style="font-size: 30rpx; color: #9fa0a0;">选择专业医养机构</text></view>
				</view>
			</view> -->
			<!-- <view class="onebox" @click="goYlzz">
				<view class="margin-left-10">
					<image src="@/static/home/image6.png" mode=""></image>
				</view>
				<view style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
					<view><text>医疗转诊</text></view>
					<view class="margin-top-16"><text style="font-size: 30rpx; color: #9fa0a0;">进入康复医疗转诊</text></view>
				</view>
			</view> -->
		</view>
		<!-- <view class="gview" style="display: flex;flex-direction: row;">
			<view style="display: flex;flex-direction: row;align-items: center;">
				<image style="width: 69rpx;height: 69rpx; margin-left: 34rpx;" src="@/static/home/gg.png"></image>
			</view>
			<view style="display: flex;
					flex-direction: row;
					align-items: center;">
				<text style="font-size: 35rpx;
						font-family: Alibaba, Alibaba-PuHuiTi-R;
						font-weight: normal;
						text-align: left;
						color: #3e3a39;">阖医聚养健康服务中心部分功能陆续上线中,敬请...</text>
			</view>
		</view> -->
		<view class="xieybox">
			<text @click="goUserXy">《用户协议》</text> <text @click="goYingsi">《隐私政策》</text>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			bannerList: ['https://applet.youtuyiliao.com/profile/avatar/2022/12/29/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250114150106.jpg'],  //轮播图片
			showFirstLoginModal: false,//首次弹框
		};
	},
	onShow() {

	},
	methods: {
		switchStatus() {
			uni.setStorageSync('app_status_key', '常规版')
			const pages = getCurrentPages()
			const currentPage = pages[0]
			uni.redirectTo({
				url: `/${currentPage.route}`
			})
			// #ifdef H5
			location.reload()
			// #endif
		},
		// 跳转隐私政策
		goYingsi() {
			uni.navigateTo({
				url: '/pages/feixiangCaringVersion/home/yinsiXieYi'
			})
		},
		// 跳转用户协议
		goUserXy() {
			uni.navigateTo({
				url: '/pages/feixiangCaringVersion/home/userXieYi'
			})
		},
		goYlzz() {
			uni.navigateTo({
				url: '/pages/feixiangCaringVersion/home/ylzz'
			})
		},
		goYhsd() {
			uni.redirectTo({
				url: '/patientAppPages/pages/index'
			})
		},
		goZlsb() {
			uni.navigateTo({
				url: '/pages/feixiangCaringVersion/home/zlsb'
			})
		},
		goJzfw() {
			uni.redirectTo({
				url: '/nursingWorkerPages/pages/index/index'
			})
		},
		goZcfw() {
			uni.navigateTo({
				url: '/pages/feixiangCaringVersion/home/zcfw'
			})
		},
		goYyjg() {
			uni.navigateTo({
				url: '/medicalMaintenance/pages/index'
			})
		},
		goFZ() {
			uni.navigateTo({
				url: '/accessoryRentalPages/pages/index'
			})
		},
		goYYPZ() {
			uni.navigateTo({
				url: '/nursingWorkerPages/pages/index/index'
			})
		},
		goMb() {
			// uni.navigateToMiniProgram({
			// 	appId: 'wx6a4d1b03e433ba34',
			// 	path: '/pages/index/index',
			// 	success() {

			// 	},
			// 	fail() {
			// 		uni.showToast({
			// 			title: '跳转失败',
			// 			icon: 'none'
			// 		})
			// 	}
			// })
			uni.redirectTo({
				url: '/chronicDisease/pages/home/index'
			});
		},
		// 暂未开发
		clickNoneContent() {
			uni.showToast({
				title: '敬请期待',
				icon: 'none'
			})
		},
		// 跳转病床申请页面
		goRecord() {
			// uni.navigateTo({
			// 	url: '/sickbed/pages/feixiangCaringVersion/application-record/application-record'
			// })
			uni.redirectTo({
				url: '/sickbed/pages/feixiang/application-record/application-record'
			})
		}
	},
}
</script>

<style scoped lang="scss">
.margin-top-16 {
	margin-top: 2rpx;
}

.margin-left-10 {
	margin-left: 12rpx;
}

.gview {
	margin-left: 34rpx;
	margin-right: 34rpx;
	background-color: #FFF;
	height: 120rpx;
	border-radius: 60rpx;
	margin-top: 40rpx;
	box-shadow: 0rpx 5rpx 14rpx 2rpx rgba(0, 0, 0, 0.1);
}

.xieybox {

	bottom: 30rpx;
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 50rpx;

	text {
		font-size: 32rpx;
		color: #00bcb2;
	}
}

.onebox {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: 344rpx;
	height: 276rpx;
	border-radius: 20rpx;
	margin: 0 0 30rpx 0;
	background-color: #fff;
	box-shadow: 0rpx 5rpx 14rpx 2rpx rgba(0, 0, 0, 0.1);

	image {
		width: 115rpx;
		height: 114rpx;
	}

	text {
		// margin: 40rpx 0 0;
		font-size: 50rpx;
		font-weight: bold;
	}
}

.allimg {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	padding: 50rpx 20rpx 0;
}

.text2 {
	margin: 10rpx 0 0;
	font-size: 32rpx;
	color: rgb(105, 105, 105);
}

.text1 {
	color: rgb(102, 102, 102);
	font-size: 44rpx;
	font-weight: 500;
}

.content {
	background-color: #F7F7F7;
	min-height: 100vh;
	width: 100vw;
	background: #F7F7F7;
	;
}

.box1 {
	padding: 100rpx 0 0 50rpx;

}

.first-dialog-view {
	width: 80%;
	border-radius: 20%;
	padding: 10rpx;
}

.switch-view {
	width: 100%;
	height: 138rpx;
	position: relative;

	.switch-btn {
		// width: 180rpx;
		// height: 43rpx;
		padding: 10rpx 20rpx;
		background: #00BBB0;
		position: absolute;
		right: 22rpx;
		top: 33rpx;
		border-radius: 40rpx;
		display: flex;
		align-items: center;
		justify-content: center;

		text {
			font-size: 32rpx;
			color: #FFF;
		}
	}
}
</style>
